﻿<html>
 <body>
   
  <p id="demo"> A Paragraph.</p>  
  <div id="myDIV"> a Div.</div>
   <p>
   <button type="button" onclick="myFunction()">点击这里</button> 
   </p>
 <script>
  function myFunction(){
   document.getElementById("demo").innerHTML="Hello World";
   document.getElementById("myDIV").innerHTML="How are you?"
   }
 </script>
		<p>当您点击上面的按钮时，两个元素会改变。</p>
 </body>
 </html>